USE [HR_DB]
GO
if exists(select * from dbo.sysobjects where id = object_id(N'salary_standard')   and   OBJECTPROPERTY(id,   N'IsUserTable')   =   1)   
  drop table salary_standard   
-- =============================================
-- Author:杨洁(kaixuanpisces)
-- Create date: 20090807
-- Description:	薪酬标准基本信息表
-- =============================================
CREATE TABLE [dbo].[salary_standard](
	[ssd_id] [smallint] IDENTITY(1,1) NOT NULL,
	[standard_id] [varchar](30) NULL,
	[standard_name] [varchar](60) NULL,
	[designer] [varchar](60) NULL,
	[register] [int] NULL,
	[checker] [int] NULL,
	[changer] [int] NULL,
	[regist_time] [datetime] NULL,
	[check_time] [datetime] NULL,
	[change_time] [datetime] NULL,
	[salary_sum] [money] NULL,
	[check_status] [smallint] NULL,
	[change_status] [smallint] NULL,
	[check_comment] [text] NULL,
	[remark] [text] NULL,
 CONSTRAINT [salary_standard_PK] PRIMARY KEY CLUSTERED 
(
	[ssd_id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
-- ==============================================
-- 列名说明
-- ==============================================
GO
SET ANSI_PADDING OFF
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键，自动增长列' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard', @level2type=N'COLUMN',@level2name=N'ssd_id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'薪酬标准单编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard', @level2type=N'COLUMN',@level2name=N'standard_id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'薪酬标准单名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard', @level2type=N'COLUMN',@level2name=N'standard_name'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制定者名字' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard', @level2type=N'COLUMN',@level2name=N'designer'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'登记人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard', @level2type=N'COLUMN',@level2name=N'register'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'复核人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard', @level2type=N'COLUMN',@level2name=N'checker'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'变更人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard', @level2type=N'COLUMN',@level2name=N'changer'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'登记时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard', @level2type=N'COLUMN',@level2name=N'regist_time'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'复核时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard', @level2type=N'COLUMN',@level2name=N'check_time'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'变更时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard', @level2type=N'COLUMN',@level2name=N'change_time'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'薪酬总额' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard', @level2type=N'COLUMN',@level2name=N'salary_sum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否经过复核' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard', @level2type=N'COLUMN',@level2name=N'check_status'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'更改状态' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard', @level2type=N'COLUMN',@level2name=N'change_status'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'复核意见' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard', @level2type=N'COLUMN',@level2name=N'check_comment'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard', @level2type=N'COLUMN',@level2name=N'remark'
